#include "Listener.h"


Listener::Listener()
{
	event = Event();
	callbacks = Vector<Driver>();
}

Listener::Listener(Event& e)
{
	event = e;
	callbacks = Vector<Driver>();
}

void Listener::registerCallback(Driver& d)
{
	callbacks.push_back(d);
}

void Listener::runDrivers()
{
	int i = 0;
	for(i = 0; i < callbacks.size(); i++)
	{
		Driver call = callbacks.get(i);
		call(NULL, 0); //assuming I don't need the return.
	}
}


